<?php

class GrupoForm extends Zend_Form {

    public function init() {
        $this->setName('grupo');
        $this->setMethod("POST");

        $nome = new Zend_Form_Element_Text("gru_nome",
                        array("validators" => array(
                                array('StringLength', false, array(4, 50))
                            ),
                            'required' => true,
                            'label' => 'Nome do grupo'));
        
        $this->addElement($nome);
        
        $this->addElement('submit', 'submit', array(
            'required' => false,
            'ignore' => true,
            'label' => 'Enviar',
            'order' => 9
                )
        );
    }

}

?>
